package com.dk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dk.mapper.TbAreasMapper;
import com.dk.pojo.TbAreas;
import com.dk.service.TbAreasService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbAreasServiceImpl implements TbAreasService{

    @Autowired
    private TbAreasMapper areasMapper;

    @Override
    public List<TbAreas> selectAreaByCid(Long cityId) {
        QueryWrapper<TbAreas> wrapper = new QueryWrapper<>();
        wrapper.eq("cityId",cityId);
        return areasMapper.selectList(wrapper);
    }
}
